package com.imvc.action;

/**
 * 执行结果
 *
 * @author ml
 * @create 2017-10-18--10:50
 */
public class ActionResult {

    private ResultContent resultContent;

    private ResultType resultType;

    public  ActionResult(ResultContent resultContent){

        this(resultContent,ResultType.Forward);
    }
    public ActionResult(ResultContent resultContent,ResultType resultType){
        this.resultContent = resultContent;
        this.resultType = resultType;
    }


    /**
     * 获取执行结果内容
     * @return
     */
    public ResultContent getResultContent() {
        return resultContent;
    }

    /**
     * 获取执行结果类型
     * @return
     */
    public ResultType getResultType() {
        return resultType;
    }
}
